package com.vca.front.controller;

import com.vca.common.result.CommonResult;
import com.vca.service.service.VhallService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import javax.validation.constraints.NotEmpty;
import java.util.Map;

/**
 * @author Li
 * @program VCA_Mini_Program
 * @description 微吼小程序控制层
 * @classname VhallController
 * @since 2022/12/29 09:10:10
 **/

@Slf4j
@RestController("VhallController")
@RequestMapping("api/front/vhall")
@Api(tags = "微吼小程序控制层")
public class VhallController {

    @Autowired
    private VhallService vhallService;

    /**
     * @description 生成Key值
     * @methodName generateKey
     * @param talkId
     * @author Li
     * @date 2022/12/29 9:44
     * @return com.vca.common.result.CommonResult<java.lang.String>
     */
    @ApiOperation("生成Key值")
    @GetMapping("/generateKey")
    public CommonResult<String> generateKey(Long talkId){
        return CommonResult.success(vhallService.generateKey(talkId));
    }


}
